﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

using Cronus.View;
using Cronus.View.Totals;
using Cronus.ViewModel;

namespace Cronus.Windows
{
    /// <summary>
    /// Interaction logic for TaskTotals.xaml
    /// </summary>
    public partial class TaskTotals : Window
    {
        //*** Constants ***//
        //*** Static ***//
        //*** Member Variables ***//
        //*** Properties ***//
        public DataModel Data { get; set; }

        //*** Constructors ***//
        public TaskTotals()
        {
            InitializeComponent();
        }

        /// <summary>
        /// This is called when the window is activated.  Bind the data to
        /// the ListBox now.
        /// </summary>
        /// <param name="sender">Not used.</param>
        /// <param name="e">Not used.</param>
        private void Window_Activated(object sender, EventArgs e)
        {
            _TaskTotalsControl = new TaskTotalsControl(Data);
        }

        //*** Methods ***//
    }
}
